# Compilation d'un petit piano d'amour...
INCLUDES=`sdl-config --cflags` $(shell ./getrepertoiresinclude)
LIBS=`sdl-config --libs` -lSDL_net -lSDL_ttf -lSDLmain -lSDL_image -lSDL_mixer
CFLAGS=-g -D__LINUX__
OBJETS=$(shell ./getfichierspointo)
EXE=monpianodamour
CXX=g++

all: $(EXE)

$(EXE): $(OBJETS)
	$(CXX) $(CFLAGS) -o $(EXE) $(OBJETS) $(LIBS)

%.o: %.cpp
	$(CXX) -c $(CFLAGS) -o $@ $< $(INCLUDES)

clean:
	rm -f $(EXE) $(OBJETS)
